package com.huaxin.hxenum.validation;

import com.huaxin.hxenum.validator.VentilationTypeValidator;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = VentilationTypeValidator.class)
public @interface ValidVentilationType {
    String message() default "无效的通风类型，允许值：natural/mechanical/hybrid/air_conditioning";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
